package soap;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.BindingType;
import java.util.List;

/**
 * 使用cxf开发不用在接口实现类上加@webservice注解，因为cxf发布服务时可以指定接口。
 */
@WebService
@BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
public interface WeatherInterface {
    @WebMethod(operationName = "queryWeather")
    @WebResult(name = "resList")
    public List<WeatherModel> queryWeather(@WebParam(name = "cityName") String cityName) throws Exception;
}
